package sample.intf.article.service;

import java.io.IOException;
import java.util.List;

import sample.intf.article.dto.TArticle;
import sample.intf.article.dto.TArticlePicture;

public interface IArticleService {

	TArticle selectArticle(long id);

	List<TArticle> selectAllArticles();

	void insertArticle(TArticle article);

	boolean updateArticle(TArticle article);

	void deleteArticle(long id);

	List<TArticlePicture> selectMissingArticlePictures(long articleId, List<String> guids);

	void addArticlePicture(TArticlePicture articlePicture);

	void saveArticlePicture(TArticlePicture articlePicture, String rootPath, byte[] imageData,
			boolean alsoAddToDatabase) throws IOException;

	void deleteArticlePictures(long articleId, String rootPath);

	void deleteArticlePictures(List<TArticlePicture> pictures, String rootPath);

}
